//菜单栏的JQ方法
$("#food").on("mouseover", function() {
	$("#topMenu").css({
		display: "block"
	})
})
$("#food").on("mouseout", function() {
	$("#topMenu").css({
		display: "none"
	})
})
$("#topMenu").hover(function() {
		$(this).css({
			display: "block"
		})
	}, function() {
		$(this).css({
			display: "none"
		})
	})
	//四个点击事件
$("#middle-right :nth-child(1)").on("click", function() {
	console.log(123);
	$("#postion>h3>span").html("面积需求");
	$("#postion>p").html("实际使用面积：标准店60-80平米，但45-120平米都在可考虑范围。")
	$(".sc-img1").css({
		display: "inline-block"
	})
	$(".sc-img2").css({
		display: "inline-block"
	})
	$(".sc-img3").css({
		display: "inline-block"
	})
	$(".sc-img1>img").attr("src", "../../img/local/location_04.jpg")
	$(".sc-img2>img").attr("src", "../../img/local/location_05.jpg")
	$(".sc-img3>img").attr("src", "../../img/local/location_06.jpg")
	$(".sc-img1>b").html("成都IFS店 45平米");
	$(".sc-img2>b").html("哈尔滨红博店 75平米");
	$(".sc-img3>b").html("天津武清店 120平米");
	$("#view").css({
		display: "none"
	})
})

$("#middle-right :nth-child(2)").on("click", function() {
	$("#postion>h3>span").html("工程条件要求");
	$("#postion>p").html("45KW电量，有符合餐饮条件的上下水。对排油排烟排污没有专项要求。")
	$(".sc-img1").css({
		display: "none"
	})
	$(".sc-img2").css({
		display: "none"
	})
	$(".sc-img3").css({
		display: "none"
	})
	$("#view").css({
		display: "block"
	})
	$("#view").attr("src", "../../img/local/location_07.jpg")
})
$("#middle-right :nth-child(3)").on("click", function() {
	$("#postion>h3>span").html("位置类型");
	$("#postion>p").html("实际使用面积：标准店60-80平米，但45-120平米都在可考虑范围。")
	$(".sc-img1").css({
		display: "inline-block"
	})
	$(".sc-img2").css({
		display: "inline-block"
	})
	$(".sc-img3").css({
		display: "inline-block"
	})
	$(".sc-img1>img").attr("src", "../../img/local/location_08.jpg")
	$(".sc-img2>img").attr("src", "../../img/local/location_09.jpg")
	$(".sc-img3>img").attr("src", "../../img/local/location_10.jpg")
	$(".sc-img1>b").html("上海虹桥机场店");
	$(".sc-img2>b").html("天津欢乐谷店");
	$(".sc-img3>b").html("山东文化东路大学城店");
	$("#view").css({
		display: "none"
	})
})
$("#middle-right :nth-child(4)").on("click", function() {
	$("#postion>h3>span").html("装修标准");
	$("#postion>p").html("全球统一的赛百味餐厅形象。")
	$(".sc-img1").css({
		display: "none"
	})
	$(".sc-img2").css({
		display: "none"
	})
	$(".sc-img3").css({
		display: "none"
	})
	$("#view").css({
		display: "block"
	})
	$("#view").attr("src", "../../img/local/location_11.jpg")
})

//下方五组图的JQ事件
$(".img1").hover(function() {
	$(".img1").attr("src", "../../img/image/home-box-1_hover.jpg")
}, function() {
	$(".img1").attr("src", "../../img/image/home-box-1_CN.jpg")
})

$(".img2").hover(function() {
	$(".img2").attr("src", "../../img/image/home-box-2_hover.jpg")
}, function() {
	$(".img2").attr("src", "../../img/image/home-box-2_CN.jpg")
})

$(".img3").hover(function() {
	$(".img3").attr("src", "../../img/image/home-box-3_hover.jpg")
}, function() {
	$(".img3").attr("src", "../../img/image/home-box-3_CN.jpg")
})

$(".img4").hover(function() {
	$(this).attr("src", "../../img/image/weibo_hover.jpg")
}, function() {
	$(this).attr("src", "../../img/image/weibo_CN.jpg")
})

$(".img5").hover(function() {
	$(".code").css({
		display: "block"
	})
	$(this).attr("src", "../../img/image/weixin_hover.jpg")
}, function() {
	$(".code").css({
		display: "none"
	})
	$(this).attr("src", "../../img/image/weixin_CN.jpg")
})